<template>
  <div>
    <tiny-process :options="options"></tiny-process>
  </div>
</template>

<script lang="jsx">
import { TinyHuichartsProcess } from '@opentiny/vue-huicharts'

export default {
  components: {
    TinyProcess: TinyHuichartsProcess
  },
  data() {
    return {
      options: {
        // 图表名称
        name: 'ProcessBarChart',
        // 主题，默认值'light'
        theme: 'light',
        // Padding 控制图表距离容器的上、右、下、左 padding 值
        padding: [32, 32, 0, 32], // 颜色组，循环使用
        color: ['#fa2a2d', '#ff7500', '#ffbf00', '#41ba41', '#00aaee'],
        barWidth: 25,
        unit: '',
        calibrationValue: 200,
        // 数据
        data: [
          { name: 'UniEPMgr', value: 80 },
          { name: 'SMLoglic', value: 65 },
          { name: 'SSO', value: 45 },
          { name: 'APIMgr', value: 20 },
          { name: 'Logtransfer', value: 12 }
        ]
      }
    }
  }
}
</script>
